package com.info.zhiduoduo.admin.service;

import com.info.zhiduoduo.common.configs.NotificationConfig;
import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
import com.info.zhiduoduo.core.service.CommonService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class NotificationService {

	@Autowired
	CommonService commonService;

	@Autowired
	NotificationConfig notificationConfig;
	@Autowired
	HttpServletRequest httpServletRequest;


	public SmartResult sendBossVerifyCode(@RequestBody BaseSimpleFormBean formBean) {

		String phone = notificationConfig.getBossPhone();
		return commonService.sendPhoneVerifyCode(httpServletRequest, phone);
	}
}
